import request from '@/utils/request'

// 查询资产盘点列表
export function listAssetPd(query) {
  return request({
    url: '/sales/AssetPd/list',
    method: 'get',
    params: query
  })
}

// 查询资产盘点详细
export function getAssetPd(id) {
  return request({
    url: '/sales/AssetPd/' + id,
    method: 'get'
  })
}

// 新增资产盘点
export function addAssetPd(data) {
  return request({
    url: '/sales/AssetPd',
    method: 'post',
    data: data
  })
}

// 修改资产盘点
export function updateAssetPd(data) {
  return request({
    url: '/sales/AssetPd',
    method: 'put',
    data: data
  })
}

// 删除资产盘点
export function delAssetPd(id) {
  return request({
    url: '/sales/AssetPd/' + id,
    method: 'delete'
  })
}

//生成盘点表
export function scpd(data) {
  return request({
    url: '/sales/AssetPd/sc',
    method: 'post',
    data: data
  })
}

//审核盘点
export function shpd(data) {
  return request({
    url: '/sales/AssetPd/sh',
    method: 'post',
    data: data
  })
}
